import axios from './request'

export const userRegister = (data) => {
    return axios({
        method: 'POST',
        url: '/register',
        params: data
    })
}
export const userLogin = (data) => {
    return axios({
        method: 'POST',
        url: '/login',
        params: data
    })
}

export const getApprovalList = (data) => {
    return axios({
        method: 'POST',
        url: '/student/list',
        params: data
    })
};
// POST  /student/verify获取学院的所有学生 验证
export const approvalStudent = (data) => {
    return axios({
        method: 'post',
        url: '/student/verify',
        params: data
    })
};
export const getTeacherList = (data) => {
    return axios({
        method: 'GET',
        url: '/teacher/list',
        params: data
    })
};
// /teacher/verify

export const approvalTeacher = (data) => {
    return axios({
        method: 'post',
        url: '/teacher/verify',
        params: data
    })
};

export const userSave = (data) => {
    return axios({
        method: 'post',
        url: '/score/save',
        params: data
    })
};

// /score/student
export const getStudentScore = (data) => {
    return axios({
        method: 'GET',
        url: '/score/student',
        params: data
    })
};

export const getTarStudentScore = () => {
    return axios({
        method: 'GET',
        url: '/score/student/one',
    })
};
export const getTarTeacherScore = () => {
    return axios({
        method: 'GET',
        url: '/score/teacher/one',
    })
};


export const getTeacherScore = (data) => {
    return axios({
        method: 'GET',
        url: '/score/teacher',
        params: data
    })
};